package com.etfbl.net.dao;

import com.etfbl.net.dto.Drzava;
/**
 *
 * @author abosancic
 * @date Jul-29-2013
 */ 

public class DAODrzava extends DAOBase<Drzava, java.lang.Integer> {

    public DAODrzava() {
        super(Drzava.class);
    }

    @Override
    protected String [] getColumns(){
        return new String[]{"iddrzave","naziv"};
    }

    @Override
    protected String [] getPrimaryKeyName(){
        return new String[]{"iddrzave"};
    }

    @Override
    protected String getTableName(){
        return "drzava";
    }

    /**
     *
     * Auto generate find methods
     * @author abosancic
     * @date Jul-29-2013
     */
    public java.util.List<Drzava> findByNaziv(java.lang.String naziv) {
        return findProcessing("naziv", naziv);
    }

    /**
     *
     * Auto generate remove methods
     * @author abosancic
     * @date Jul-29-2013
     */
    public boolean removeByIddrzave(java.lang.Integer iddrzave) {
        return removeProcessing("iddrzave", iddrzave);
    }

    public boolean removeByNaziv(java.lang.String naziv) {
        return removeProcessing("naziv", naziv);
    }

}
